﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true"
    CodeBehind="StudentDetailsSearch.aspx.cs" Inherits="School.Pages.Admission.StudentDetailsSearch" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <div id="displaybox">
                <div>
                    جارى تنفيذ الأمر</div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    
 <Triggers><asp:PostBackTrigger ControlID="btnPrint" /></Triggers>
        <ContentTemplate>
            <div align="center">
                <asp:Panel ID="pnlbrows" runat="server" Visible="true">
                    <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td class="admintitle">
                                شاشة ملف الطالب
                            </td>
                        </tr>
                        <tr>
                            <td class="admintitle" style="text-align: right">
                                البحث
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table align="center" border="0" cellpadding="0" cellspacing="0" width="90%">
                                    <tr>
                                        <td>
                                            رقم القيد
                                        </td>
                                        <td align="right">
                                            <asp:TextBox ID="txtSearchRegistrationNumber" runat="server" CssClass="text" Width="150px"></asp:TextBox>
                                        </td>
                                        <td>
                                            رقم الملف
                                        </td>
                                        <td align="right">
                                            <asp:TextBox ID="txtSearchFileNumber" runat="server" CssClass="text" Width="150px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblFirstname1" runat="server" CssClass="lab" Text="الاسم"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:TextBox ID="txtSearchName" runat="server" CssClass="text" Width="150px"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label2" runat="server" CssClass="lab" Text="المجمع"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:DropDownList ID="ddlSearchcampus_Id" runat="server" AutoPostBack="True" Width="200px"
                                                OnSelectedIndexChanged="ddlSearchcampus_Id_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td align="right" rowspan="3">
                                        </td>
                                        <td>
                                            <asp:Label ID="lblCertificate_Id0" runat="server" CssClass="lab" Text="نوع الشهادة"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:DropDownList ID="ddlSearchCertificate_Id" runat="server" AutoPostBack="True"
                                                Enabled="False" Width="200px" OnSelectedIndexChanged="ddlSearchCertificate_Id_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:Label ID="lblStage_Id0" runat="server" CssClass="lab" Text="مرحلة القيد"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:DropDownList ID="ddlSearchStage_Id" runat="server" AutoPostBack="True" Enabled="False"
                                                Width="200px" OnSelectedIndexChanged="ddlSearchStage_Id_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="height: 22px">
                                            &nbsp;
                                        </td>
                                        <td style="height: 22px">
                                            <asp:Label ID="lblGrade_Id0" runat="server" CssClass="lab" Text="الصف"></asp:Label>
                                        </td>
                                        <td align="right" style="height: 22px">
                                            <asp:DropDownList ID="ddlSearchGrade_ID" runat="server" Enabled="False" Width="200px">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr style="display: none">
                                        <td colspan="2">
                                        </td>
                                        <td colspan="2">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <asp:CheckBox ID="chFileNumber" runat="server" Checked="false" Text="رقم الملف" OnCheckedChanged="chFileNumber_CheckedChanged" />
                                            <asp:CheckBox ID="chRegistrationNumber" runat="server" Checked="false" Text="رقم القيد"
                                                OnCheckedChanged="chRegistrationNumber_CheckedChanged" />
                                            <asp:CheckBox ID="chName" runat="server" Checked="true" Text="الاسم" OnCheckedChanged="chName_CheckedChanged" />
                                            <asp:CheckBox ID="chBirthDate" runat="server" Checked="false" Text="تاريخ الميلاد"
                                                OnCheckedChanged="chBirthDate_CheckedChanged" />
                                            <asp:CheckBox ID="chRelign" runat="server" Checked="false" Text="الديانة" OnCheckedChanged="chRelign_CheckedChanged" />
                                            <asp:CheckBox ID="chNationalId" runat="server" Checked="false" Text="رقم الهوية"
                                                OnCheckedChanged="chNationalId_CheckedChanged" />
                                            <asp:CheckBox ID="chPassport" runat="server" Checked="false" Text="رقم الجواز" OnCheckedChanged="chPassport_CheckedChanged" />
                                            <asp:CheckBox ID="chGender" runat="server" Checked="false" Text="النوع" OnCheckedChanged="chGender_CheckedChanged" />
                                            <asp:CheckBox ID="chStudentDat" runat="server" Checked="true" Text="بيانات الطالب"
                                                OnCheckedChanged="chStudentDat_CheckedChanged" Visible="False" />
                                            <asp:CheckBox ID="chOthers" runat="server" Checked="true" Text="مرفقات" 
                                                OnCheckedChanged="chOthers_CheckedChanged" Visible="False" />
                                            <asp:CheckBox ID="chDelete" runat="server" Checked="true" Text="حذف" 
                                                OnCheckedChanged="chDelete_CheckedChanged" Visible="False" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <asp:CheckBox ID="chFatherQualification" runat="server" Checked="false" Text="مؤهل الاب"
                                                OnCheckedChanged="chFatherQualification_CheckedChanged" />
                                            <asp:CheckBox ID="chFatherSpecialization" runat="server" Checked="false" Text="تخصص الاب"
                                                OnCheckedChanged="chFatherSpecialization_CheckedChanged" />
                                            <asp:CheckBox ID="chFatherPointOfGraduation" runat="server" Checked="false" Text="جهة تخرج الاب"
                                                OnCheckedChanged="chFatherPointOfGraduation_CheckedChanged" />
                                            <asp:CheckBox ID="chFatherJob" runat="server" Checked="false" Text="وظيفة الاب" OnCheckedChanged="chFatherJob_CheckedChanged" />
                                            <asp:CheckBox ID="chMotherQualification" runat="server" Checked="false" Text="مؤهل الام"
                                                OnCheckedChanged="chMotherQualification_CheckedChanged" />
                                            <asp:CheckBox ID="chMotherSpecialization" runat="server" Checked="false" Text="تخصص الام"
                                                OnCheckedChanged="chMotherSpecialization_CheckedChanged" />
                                            <asp:CheckBox ID="chMotherPointOfGraduation" runat="server" Checked="false" Text="جهة تخرج الام"
                                                OnCheckedChanged="chMotherPointOfGraduation_CheckedChanged" />
                                            <asp:CheckBox ID="chMotherJob" runat="server" Checked="false" Text="وظيفة الام" OnCheckedChanged="chMotherJob_CheckedChanged" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <asp:Button ID="btnSearch" runat="server" CssClass="graybutton" Text="بحث" OnClick="btnSearch_Click" />
                                            &nbsp;&nbsp;<asp:Button ID="btnGetAll" runat="server" CssClass="graybutton" Text="الكل"
                                                OnClick="btnGetAll_Click" />
                                                &nbsp;&nbsp;<asp:Button ID="btnPrint" runat="server" CssClass="graybutton" 
                                                Text="طباعة" onclick="btnPrint_Click" 
                                                 />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" style="text-align: right">
                                            <asp:Label ID="lblRecordNo" runat="server" CssClass="admintitle"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <asp:GridView ID="griddata" runat="server" AllowPaging="True" AllowSorting="True"
                                                AlternatingRowStyle-CssClass="GridItemAltername" AutoGenerateColumns="False"
                                                CssClass="Grid" DataKeyNames="Id" FooterStyle-CssClass="GridHeaderFooter" HeaderStyle-CssClass="GridHeaderFooter"
                                                PagerStyle-CssClass="GridPager" Width="100%" PageSize="50" OnPageIndexChanging="griddata_PageIndexChanging"
                                                OnRowDataBound="griddata_RowDataBound" OnRowDeleting="griddata_RowDeleting" OnSelectedIndexChanged="griddata_SelectedIndexChanged">
                                                <AlternatingRowStyle CssClass="GridItemAltername" />
                                                <Columns>
                                                    <asp:BoundField DataField="FileNumber" HeaderText="رقم الملف" Visible="false" />
                                                    <asp:BoundField DataField="RegistrationNumber" HeaderText="رقم القيد" Visible="false" />
                                                    <asp:BoundField DataField="FullName" HeaderText="الاسم الكامل" Visible="false" />
                                                    <asp:BoundField DataField="Gregorian_BirthDate" HeaderText="تاريخ الميلاد" DataFormatString="{0:yyyy/MM/dd}"
                                                        Visible="false" />
                                                    <asp:BoundField DataField="relign" HeaderText="الديانة" Visible="false" />
                                                    <asp:BoundField DataField="ID_Number" HeaderText="رقم الهوية" Visible="false" />
                                                    <asp:BoundField DataField="Passport_Number" HeaderText="جواز سفر" Visible="false" />
                                                    <asp:BoundField DataField="gender" HeaderText="النوع" Visible="false" />
                                                    <asp:BoundField DataField="CertificateName" HeaderText="القسم" Visible="false" />
                                                    <asp:BoundField DataField="fatherQualification" HeaderText="مؤهل الاب" Visible="false" />
                                                    <asp:BoundField DataField="fatherSpecialization" HeaderText="تخصص الاب" Visible="false" />
                                                    <asp:BoundField DataField="fatherPointOfGraduation" HeaderText="جهة تخرج الاب" Visible="false" />
                                                    <asp:BoundField DataField="fatherJob" HeaderText="وظيفة الاب" Visible="false" />
                                                    <asp:BoundField DataField="motherQualification" HeaderText="مؤهل الام" Visible="false" />
                                                    <asp:BoundField DataField="motherSpecialization" HeaderText="تخصص الام" Visible="false" />
                                                    <asp:BoundField DataField="motherPointOfGraduation" HeaderText="جهة تخرج الام" Visible="false" />
                                                    <asp:BoundField DataField="motherJob" HeaderText="وظيفة الام" Visible="false" />
                                                    <asp:HyperLinkField DataNavigateUrlFields="Id" Visible="true" DataNavigateUrlFormatString="AddStudent.aspx?sid={0}"
                                                        Text="ادخال بيانات الطالب" Target="_blank" />
                                                    <asp:HyperLinkField DataNavigateUrlFields="Id" Visible="true" DataNavigateUrlFormatString="Student_Attachment.aspx?sid={0}"
                                                        Text="مرفقات" />
                                                    <asp:TemplateField ShowHeader="False" Visible="true">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                                                Text="حذف"></asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <FooterStyle CssClass="GridHeaderFooter" />
                                                <HeaderStyle CssClass="GridHeaderFooter" />
                                                <PagerStyle CssClass="GridPager" />
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <asp:Label ID="lblMessage" runat="server" CssClass="error"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" colspan="4">
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
            <br />
            <asp:Panel ID="pnldetails" runat="server" Visible="false">
                <div align="center" id="DivContent">
                </div>
                <div align="center" id="DivContent2">
                    <table align="center" cellpadding="0" cellspacing="0" border="0" width="90%" dir="rtl">
                        <tr>
                            <td class="admintitle" colspan="3">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:DetailsView Width="100%" ID="DetViewdata" runat="server" AlternatingRowStyle-CssClass="GridItemAltername"
                                    CssClass="Grid" HeaderStyle-CssClass="GridHeaderFooter" HeaderStyle-Width="30%"
                                    AutoGenerateRows="False">
                                    <AlternatingRowStyle CssClass="GridItemAltername" />
                                    <Fields>
                                        <asp:BoundField DataField="FileNumber" HeaderText="رقم أمر الدفع" />
                                        <asp:BoundField DataField="RegistrationNumber" HeaderText="التاريخ" />
                                        <asp:BoundField DataField="Ar_FirstName" HeaderText="االاسم الاول" />
                                    </Fields>
                                    <HeaderStyle CssClass="GridHeaderFooter" Width="30%" />
                                </asp:DetailsView>
                            </td>
                        </tr>
                    </table>
                </div>
                <table align="center" cellpadding="0" cellspacing="0" border="0" width="50%" dir="rtl">
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <input type="button" value="رجوع" onclick="history.go(-1)" class="graybutton" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
